@import './../../../../node_modules/@plait/draw/styles/styles.scss';
@import './../../../../node_modules/@plait/mind/styles/styles.scss';
@import './theme.scss';

.drawnix {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft Yahei', 'Hiragino Sans GB', Arial, sans-serif;
    .pencil-mode-toolbar {
        position: absolute;
        top: 82px;
        left: 0;
        .tool-icon__icon {
            width: auto;
            padding: 0 8px;
            background-color: var(--color-surface-mid);
        }
    }
    .draw-toolbar {
        cursor: default;
        position: absolute;
        top: 36px;
        left: 50%;
        transform: translateX(-50%);
        @include isMobile {
            top: 20px;
        }
    }
    .zoom-toolbar {
        cursor: default;
        position: absolute;
        top: 36px;
        right: 36px;
        @include isMobile {
            display: none;
        }
        .zoom-out-button {
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        .zoom-menu-trigger {
            width: 56px;;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-on-surface);
            border-radius: var(--border-radius-sm);;
            cursor: pointer;

            &:hover, &.active {
                --background: var(--color-surface-primary-container);
                background-color: var(--background);
            }
        }
        .zoom-in-button{
            color: var(--color-on-surface);
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }
    }
    .app-toolbar {
        position: absolute;
        top: 36px;
        left: 36px;
        @include isMobile {
            bottom: 20px;
            top: auto;
            width: 86%;
            left: 50%;
            transform: translateX(-50%);
        }
        .stack {
            @include isMobile {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
        }
    }
    .theme-toolbar {
        position: absolute;
        bottom: 36px;
        right: 36px;
        @include isMobile {
            display: none;
        }
        select {
            width: 100px;
            background-color: var(--color-surface-secondary-container);
            color: var(--color-on-surface);
            border-radius: var(--border-radius-sm);
            padding: 4px 8px;
            cursor: pointer;
            border: none;
            outline: none;
            font-size: 14px;
            &:hover {
                background-color: var(--color-surface-primary-container);
            }
        }
    }
    .drawnix-link, a {
        text-decoration: none;
        color: var(--link-color);
        user-select: none;
        cursor: pointer;

        &:hover {
        text-decoration: underline;
        }
        &:active {
        text-decoration: none;
        }
    }
    .a {
        font-weight: 500;
        text-decoration: none;
        color: var(--link-color);
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
    }
    textarea {
        outline: none;
        &:hover, &:focus {
            border: 1px solid var(--color-primary);
        }
    }
    .drawnix-button {
        @include outlineButtonStyles;
    }

    [plait-mindmap="true"] {
        img.image-origin--focus:hover {
            cursor: zoom-in;
        }
    }

    .laser-pointer {
        background: transparent;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 2022;
        width: 100vw;
        height: 100vh;
        &.mouse-course-hidden {
            pointer-events: none;
        }
    }
}

.plait-board-container {
    &.pointer-eraser {
        .board-host-svg {
            cursor: url('') 10 10, crosshair !important;
        } 
    }
    .slate-editable-container {
        cursor: inherit !important;
    }
}

